package com.tanjie.blackbean.mybatis.query;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 分页查询参数
 *
 * @author tanjie
 * @date: 2021-12-14 16:56:55
 */
@Data
@Accessors(chain = true)
@Schema(description = "查询条件")
public class PageParam {

    /**
     * 当前页
     */
    @Schema(description = "当前页")
    private Integer current = 1;

    /**
     * 每页的数量
     */
    @Schema(description = "每页的数量")
    private Integer size = 10;

    /**
     * 正排序规则
     */
    @Schema(description = "正排序规则")
    private String ascs;

    /**
     * 倒排序规则
     */
    @Schema(description = "降序排列规则")
    private String descs;

}
